Skip to content

Conversation

avdv
Copy link
Contributor

@avdv avdv commented Sep 12, 2025

Issuing a GET request to /package/<name-version>.tar.gz on hackage.haskell.org sometimes
(for whatever reason) responds with an invalid header when using chunked transfer
encoding.

See https://discourse.haskell.org/t/hackage-errors-invalid-hash-s-5170-invalidchunkheaders/12935

Specifying a content length explicitly (hopefully) circumvents the problem.

Note, it's not really clear if that solves the problem, but this should also be a tiny bit more efficient.

Issuing a GET request to `/package/<name-version>.tar.gz` on hackage.haskell.org sometimes
(for whatever reason) responds with an invalid header when using chunked transfer
encoding.

See https://discourse.haskell.org/t/hackage-errors-invalid-hash-s-5170-invalidchunkheaders/12935

Specifying a content length explicitly (hopefully) circumvents the problem.
@gbaz gbaz merged commit 4b2f17d into haskell:master Sep 30, 2025
1 check passed
@avdv avdv deleted the avoid-invalid-chunk-headers branch September 30, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants